﻿<GroupBox x:Class="BOL.Apps.GeneNetworkBrowser.Controls.HumanChromosomeFilter"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:converters="clr-namespace:BOL.Apps.GeneNetworkBrowser.Converters"
             Header="Chromosome" Padding="2">
    <GroupBox.Resources>
        <converters:CheckAllConverter x:Key="CheckAllConverter" x:Shared="False"/>
    </GroupBox.Resources>
    <StackPanel>
        <CheckBox Padding="5 0 15 0" Name="_cbChrAll" Content="All">
            <CheckBox.IsChecked>
                <MultiBinding Converter="{StaticResource CheckAllConverter}">
                    <Binding ElementName="_cbChr1" Path="IsChecked" />
                    <Binding ElementName="_cbChr1" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr2" Path="IsChecked" />
                    <Binding ElementName="_cbChr2" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr3" Path="IsChecked" />
                    <Binding ElementName="_cbChr3" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr4" Path="IsChecked" />
                    <Binding ElementName="_cbChr4" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr5" Path="IsChecked" />
                    <Binding ElementName="_cbChr5" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr6" Path="IsChecked" />
                    <Binding ElementName="_cbChr6" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr7" Path="IsChecked" />
                    <Binding ElementName="_cbChr7" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr8" Path="IsChecked" />
                    <Binding ElementName="_cbChr8" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr9" Path="IsChecked" />
                    <Binding ElementName="_cbChr9" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr10" Path="IsChecked" />
                    <Binding ElementName="_cbChr10" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr11" Path="IsChecked" />
                    <Binding ElementName="_cbChr11" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr12" Path="IsChecked" />
                    <Binding ElementName="_cbChr12" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr13" Path="IsChecked" />
                    <Binding ElementName="_cbChr13" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr14" Path="IsChecked" />
                    <Binding ElementName="_cbChr14" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr15" Path="IsChecked" />
                    <Binding ElementName="_cbChr15" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr16" Path="IsChecked" />
                    <Binding ElementName="_cbChr16" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr17" Path="IsChecked" />
                    <Binding ElementName="_cbChr17" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr18" Path="IsChecked" />
                    <Binding ElementName="_cbChr18" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr19" Path="IsChecked" />
                    <Binding ElementName="_cbChr19" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr20" Path="IsChecked" />
                    <Binding ElementName="_cbChr20" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr21" Path="IsChecked" />
                    <Binding ElementName="_cbChr21" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChr22" Path="IsChecked" />
                    <Binding ElementName="_cbChr22" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChrX" Path="IsChecked" />
                    <Binding ElementName="_cbChrX" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbChrY" Path="IsChecked" />
                    <Binding ElementName="_cbChrY" Path="IsEnabled" Mode="OneWay"/>
                </MultiBinding>
            </CheckBox.IsChecked>
        </CheckBox>
        <WrapPanel>
            <CheckBox Name="_cbChr1" Padding="5 0 15 0" IsChecked="True">1</CheckBox>
            <CheckBox Name="_cbChr2" Padding="5 0 15 0" IsChecked="True">2</CheckBox>
            <CheckBox Name="_cbChr3" Padding="5 0 15 0" IsChecked="True">3</CheckBox>
            <CheckBox Name="_cbChr4" Padding="5 0 15 0" IsChecked="True">4</CheckBox>
            <CheckBox Name="_cbChr5" Padding="5 0 15 0" IsChecked="True">5</CheckBox>
            <CheckBox Name="_cbChr6" Padding="5 0 15 0" IsChecked="True">6</CheckBox>
            <CheckBox Name="_cbChr7" Padding="5 0 15 0" IsChecked="True">7</CheckBox>
            <CheckBox Name="_cbChr8" Padding="5 0 15 0" IsChecked="True">8</CheckBox>
            <CheckBox Name="_cbChr9" Padding="5 0 15 0" IsChecked="True">9</CheckBox>
            <CheckBox Name="_cbChr10" Padding="5 0 15 0" IsChecked="True">10</CheckBox>
            <CheckBox Name="_cbChr11" Padding="5 0 15 0" IsChecked="True">11</CheckBox>
            <CheckBox Name="_cbChr12" Padding="5 0 15 0" IsChecked="True">12</CheckBox>
            <CheckBox Name="_cbChr13" Padding="5 0 15 0" IsChecked="True">13</CheckBox>
            <CheckBox Name="_cbChr14" Padding="5 0 15 0" IsChecked="True">14</CheckBox>
            <CheckBox Name="_cbChr15" Padding="5 0 15 0" IsChecked="True">15</CheckBox>
            <CheckBox Name="_cbChr16" Padding="5 0 15 0" IsChecked="True">16</CheckBox>
            <CheckBox Name="_cbChr17" Padding="5 0 15 0" IsChecked="True">17</CheckBox>
            <CheckBox Name="_cbChr18" Padding="5 0 15 0" IsChecked="True">18</CheckBox>
            <CheckBox Name="_cbChr19" Padding="5 0 15 0" IsChecked="True">19</CheckBox>
            <CheckBox Name="_cbChr20" Padding="5 0 15 0" IsChecked="True">20</CheckBox>
            <CheckBox Name="_cbChr21" Padding="5 0 15 0" IsChecked="True">21</CheckBox>
            <CheckBox Name="_cbChr22" Padding="5 0 15 0" IsChecked="True">22</CheckBox>
            <CheckBox Name="_cbChrX" Padding="5 0 15 0" IsChecked="True">X</CheckBox>
            <CheckBox Name="_cbChrY" Padding="5 0 15 0" IsChecked="True">Y</CheckBox>
        </WrapPanel>
    </StackPanel>
</GroupBox>
